﻿@model RutTrichThongTin.Models.VeMayBayModel

@{
    ViewBag.Title = "KetQuaTimVeMayBay";
    var KetQua = ViewBag.KetQuaTimKiem;
    List<string> ListColumn = ViewBag.ListColumn;

    int nColumn = ListColumn.Count;
    int IdCuaHang = ViewBag.IdCuaHang;


    RutTrichThongTin.ThongTinTyGia ThongTinTyGia = (RutTrichThongTin.ThongTinTyGia)Session["ThongTinTyGia"];
    string LoaiTienTe = ThongTinTyGia.TyGiaHienTai;
    Double TyGia = ThongTinTyGia.DsTyGia[LoaiTienTe];      
}

<h2>KetQuaTimVeMayBay</h2>


	<table border="1px" width="90%" style="margin-left:10px">        @if (IdCuaHang == -1)
        {            <tr>			    <td>Giờ đi</td>			    <td>Giờ đến></td>			    <td>Hãng máy bay</td>			    <td>Giá vé</td>		    </tr>            foreach(IAirPlanePlugin.AirPlaneTicketInfo item in KetQua)            {		        <tr>			        <td>@item.GioDi</td>			        <td>@item.GioDen</td>			        <td>@item.HangMayBay</td>			        <td>@item.GiaVeCacLoai</td>		        </tr>            }        }        else        {            <tr>			    @foreach (string strItem in ListColumn)
                {                        <td>@strItem</td>                }		    </tr>            foreach(IAirPlanePlugin.AirPlaneTicketInfo item in KetQua)            {		        <tr>                    @for(int i=0;i<nColumn;i++)                    {                        <td>@item.getAttributeValue(ListColumn[i])</td>                    }		        </tr>            }                    }	</table>
